#include <stdlib.h>
#include <stdio.h>

int main()
{
    int x = 1, y = 1, z = 1;
    z += ++x + y++; //++x结果为自增后的值，y++结果为y原本的值 +=运算符优先级比+低
                    // z = z + (x+y) 此时 x=2，y=1
    // int n = y++;
    printf("%d，%d，%d\n", x, y, z);

    int n = 10;
    printf("%d\n", n += n -= n - n); //-运算符优先级比+=和-=高，自右向左依次计算

    char *ch = "abcde";
    ch+=2;
    printf("%s\n",ch);

    

    system("pause");
    return 0;
}